#ifndef XINFOMATHEADPARSER_H
#define XINFOMATHEADPARSER_H

#include "infomatconfigdefine.h"

class QByteArray;

class XInfomatHeadParser
{
public:
    XInfomatHeadParser();
    ~XInfomatHeadParser();

    void
    getHeadData(QByteArray in_datagram);

    uint8_t
    getHeadProtocol(void) const;
    uint16_t
    getHeadSize(void) const;
    uint8_t
    getHeadResult(void) const;
    uint8_t
    getHeadType(void) const;
    uint8_t
    getHeadCommand(void) const;

private:
    STInfomatConfigHead  m_configHead;

};

#endif // XINFOMATHEADPARSER_H
